package asteroids.model.programs.Expression;

/**
* 
* @version 0.3
* @author  Tandan Sunil, Van Deun Luca
*
*/
public class Negation extends UnaryBooleanExpression{

	public Negation(int line, int column, Expression e1) {
		super(line, column, e1);
	}
	
	/**
	 * Return the result of this negation.
	 * @return	...
	 * 			|result == !(getFirstExpression().getResult())
	 */
	@Override
	public boolean getBoolean() {
		return !getExpression().getBoolean();
	}

}
